<?php

require_once 'Zend/View/Helper/Abstract.php';

class Core_View_Helper_SelectAdminRole extends Zend_View_Helper_Abstract
{
    public function selectAdminRole($name, $value, $attribs = false)
    {
        $options['admin']      = $this->view->getTranslation('Site Administrator');
        $options['superadmin'] = $this->view->getTranslation('Super Administrator');

        $form   = new Core_Form();
        $select = $form->createElement('select', $name, array(
            'multiOptions'  => $options,
            'value'         => $value,
        ));
        if (is_array($attribs)) {
            $select->setAttribs($attribs);
        }
        return $select;
    }
}